package com.hangxiang.approval.vo;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hangxiang.approval.entity.GroupManager;
import com.hangxiang.approval.entity.RoleMenu;
import com.hangxiang.approval.entity.UserManager;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 用户表(User)实体类
 *
 * @author makejava
 * @since 2020-11-24 09:46:51
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "信息类")
public class UserVo extends Model<UserVo> implements Serializable {
    private static final long serialVersionUID = 402901910352151393L;
    /**
     * 自增主键
     */
    @ApiModelProperty("自增主键")
    private Integer id;
    /**
     * 用户名称
     */
    @ApiModelProperty("用户名称")
    private String userName;
    /**
     * 密码
     */
    @ApiModelProperty("密码")
    private String password;
    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;
    /**
     * 电话
     */
    @ApiModelProperty("电话")
    private String phone;
    /**
     * 性别
     */
    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("$column.comment")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 微信ipenid
     */
    @ApiModelProperty("微信ipenid")
    private String openId;
    /**
     * 最后登录时间
     */
    @ApiModelProperty("最后登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date finallyTime;
    /**
     * 是否禁用0否1是
     */
    @ApiModelProperty("是否禁用0否1是")
    private Object isForbidden;

    List<RoleMenuVo> roleMenuList;

    List<GroupManager> groupManagerList;
    List<UserManager> userManagerList;
    List<RoleMenuVo> roleMenuTwoList;

}